﻿#region Using statements
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Rectangular.Util;
#endregion

namespace Rectangular.Model.Entities
{
    public class Monster : Entity
    {
        #region Members
        /* The texture of the monster */
        public static new Texture2D Texture;
        #endregion

        #region Constructors
        public Monster()
        {
            Health = 100;
            MovingSpeed = 100;
            Height = 64;
            Width = 32;          
        }
        #endregion

        #region Methods
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (Texture != null && Visible == true)
            {
                if (Health <= 100 && Health > 50)
                {
                    spriteBatch.Draw(Texture, Position, Color.White);
                }
                else if (Health <= 50 && Health > 25)
                {
                    spriteBatch.Draw(Texture, Position, Color.Yellow);
                }
                else
                {
                    spriteBatch.Draw(Texture, Position, Color.Red);
                }
            }
        }
        #endregion
    }
}
